Properly convert GtkImageMenuItems which use stock labels but don't have
authorJohan Dahlin <johan@gnome.org>
Sun, 23 Mar 2008 08:17:07 +0000 (08:17 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Sun, 23 Mar 2008 08:17:07 +0000 (08:17 +0000)
2008-03-23  Johan Dahlin  <johan@gnome.org>

* gtk/gtk-builder-convert:
Properly convert GtkImageMenuItems which use stock labels but don't
have any children.
(#523932, Brian Pepple)

svn path=/trunk/; revision=19924

ChangeLog
gtk/gtk-builder-convert

index 32dc863ae59cc9f9c38637bfe1b1923efd04ba80..d30f1fe025242cf1b4a981efb6c3fb352d120a72 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-03-23  Johan Dahlin  <johan@gnome.org>
+
+       * gtk/gtk-builder-convert:
+       Properly convert GtkImageMenuItems which use stock labels but don't
+       have any children.
+       (#523932, Brian Pepple)
+       
 2008-03-22  Matthew Barnes  <mbarnes@redhat.com>
 
        * gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
index 088637f2e2e8547f339c254fd703f40075055201..62dea26f7b551f486b3a4ee13bfdccc9ada8cbcc 100755 (executable)
@@ -422,7 +422,7 @@ class GtkBuilderConverter(object):
 
         if get_property(node, 'use_stock') == 'True':
             if 'label' in properties:
-                properties['stock_id'] = child
+                properties['stock_id'] = properties['label']
                 del properties['label']
 
         properties['name'] = object_id